package com.risetek.tft.entity;

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Map;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Type;

/**
 * TSysConfig entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "T_SYS_CONFIG")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class TSysConfig implements java.io.Serializable {

	// Fields

	private Integer id;
	private Map config;

	// Constructors

	/** default constructor */
	public TSysConfig() {
	}

	/** full constructor */
	public TSysConfig(Map config) {
		this.config = config;
	}

	// Property accessors
	@Id
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "CONFIG")
	@Type(type = "com.risetek.tft.utils.hibernate.type.CustomerJsonTypeOfMap")
	public Map getConfig() {
		return this.config;
	}

	public void setConfig(Map config) {
		this.config = config;
	}

}